#include "modelloader.h"
#include "resource/model.h"

using namespace kraw;

ModelLoader::ModelLoader()
{
}

ModelLoader::~ModelLoader()
{
}

bool ModelLoader::load()
{
	return false;
}

void ModelLoader::unload()
{
	for (int i=0; i<meshes.size(); i++)
	{
		Mesh* mesh = meshes[i];
		mesh->numVertices = 0;
		mesh->numIndices = 0;
		mesh->attribFlags = 0;

		if (mesh->vertices) {
			delete mesh->vertices;
		}
		if (mesh->indices) {
			delete mesh->indices;
		}
	}

	meshes.clear();
}
